console.log(1);
async function async () { // async -> promise
    console.log(2);
    // platform code 
    await console.log(3);  // Promise.resolve(console.log(3)).then(()=>console.log(4))
    console.log(4)
}
setTimeout(() => {
	console.log(5);
}, 0);
const promise = new Promise((resolve, reject) => {
    console.log(6);
    resolve(7) // 同步
})
promise.then(res => {
	console.log(res)
})
async(); 
console.log(8);


// 微任务队列 [7,4]

//  1  6   2    3    8    7,4      5